.register-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px 0;
}

.register-card {
  width: 100%;
  max-width: 600px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  margin: 20px;

  .ant-card-body {
    padding: 40px;
  }
}

.register-title {
  text-align: center;
  margin-bottom: 32px;
  color: #1890ff;
  font-size: 28px;
  font-weight: 600;
}

.captcha-image {
  width: 100%;
  height: 40px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  object-fit: cover;
  transition: all 0.2s ease;

  &:hover {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
  }
}

.register-button {
  background: linear-gradient(135deg, #1890ff, #40a9ff);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  height: 48px;
  margin-top: 16px;

  &:hover {
    background: linear-gradient(135deg, #40a9ff, #1890ff);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
  }

  &:active {
    transform: translateY(0);
  }
}

.login-link {
  text-align: center;
  margin-top: 24px;
  color: #666;
  font-size: 14px;

  a {
    color: #1890ff;
    text-decoration: none;
    margin-left: 4px;
    font-weight: 500;

    &:hover {
      text-decoration: underline;
    }
  }
}

// 表单样式优化
.ant-form-item-label > label {
  font-weight: 500;
  color: #333;
}

.ant-input,
.ant-input-password,
.ant-select-selector {
  border-radius: 6px;
  transition: all 0.2s ease;

  &:hover {
    border-color: #1890ff;
  }

  &:focus,
  &.ant-input-focused,
  &.ant-select-focused .ant-select-selector {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
  }
}

.ant-btn {
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;

  &:not(.register-button):hover {
    transform: translateY(-1px);
  }

  &:active {
    transform: translateY(0);
  }
}

// 用户协议Modal样式
.ant-modal-content {
  border-radius: 12px;
}

.ant-modal-header {
  border-radius: 12px 12px 0 0;
}

// 响应式设计
@media (max-width: 768px) {
  .register-container {
    padding: 10px;
  }

  .register-card {
    margin: 10px;

    .ant-card-body {
      padding: 24px 20px;
    }
  }

  .register-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .ant-col {
    &:not(:last-child) {
      margin-bottom: 8px;
    }
  }
}

@media (max-width: 480px) {
  .register-card {
    .ant-card-body {
      padding: 20px 16px;
    }
  }

  .register-title {
    font-size: 20px;
  }

  .captcha-image {
    height: 36px;
  }

  .ant-input-lg,
  .ant-btn-lg {
    height: 44px;
    font-size: 14px;
  }
}
